package com.frejoys.common.dto.store;

import com.frejoys.common.dto.common.PageDto;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

/**
 * 销售记录查询参数
 */
@Data
public class StoreSaleListDto extends PageDto {

    @NotNull(message = "{600}")
    @Schema(type = "Integer", name = "storeId", description = "店铺ID", required = true, defaultValue = "1")
    private Integer storeId;

    // 时间，格式年 - 2024
    @Schema(type = "Integer", name = "y", description = "时间，年份", required = false, defaultValue = "0")
    private Integer y;

    // 时间，格式年月 - 202404
    @Schema(type = "Integer", name = "ym", description = "时间，年月", required = false, defaultValue = "0")
    private Integer ym;

    // 时间，格式年月日 - 20240401
    @Schema(type = "Integer", name = "ymd", description = "时间，年月日", required = false, defaultValue = "0")
    private Integer ymd;

}
